<?php

namespace app\index\validate;

use think\Validate;

class Address extends Validate
{

    protected $rule = [
        'code'  =>  'require|min:6|max:6',
        'name' =>  'require',
        's_address' => 'array',
        'x_address' => 'require',
        'tel' => 'require',
    ];
    protected $message=[
        'code.require'=>'请输入6位数邮政编码',
        'code.min'=>'请输入6位数邮政编码',
        'code.max'=>'请输入6位数邮政编码',
        'name.require'=>'请输入姓名',
        's_address.array'=>'请输入正确的收货地址',
        'x_address.require'=>'请输入详细地址',
        'tel.require'=>'请输入手机号码',
    ];


}